﻿using System;
using System.Collections.Generic;

using UnityEngine;

public class UrlCfgData : ImplData
{
    public enum ID
    {

    }

    private IDictionary<string, string> dictUrl = new Dictionary<string, string>();

    protected override int Deserialize()
    {

        if (string.IsNullOrEmpty(jsonText))
            return -1;

        dictUrl = MiniJSON.Json.Deserialize(jsonText) as Dictionary<string, string>;

        return 0;
    }

    public string GetUrl(ID name)
    {
        

        if (dictUrl.ContainsKey(name.ToString() ))
            return dictUrl[name.ToString()];
        else
            return null;
    }


}
